package com.zrrd.article.feign;

import com.zrrd.article.service.ApArticleService;
import com.zrrd.feign.apis.IArticleClient;
import com.zrrd.model.article.dtos.ArticleDto;
import com.zrrd.model.common.dtos.ResponseResult;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author WanJl
 * @version 1.0
 * @title ArticleClient
 * @description
 * @create 2023/9/25 15:45
 */
@RestController
public class ArticleClient implements IArticleClient {
    @Autowired
    ApArticleService apArticleService;
    @Override
    public ResponseResult saveArticle(@RequestBody ArticleDto dto) {
        return apArticleService.saveArticle(dto);
    }
}
